/**
 * Copyright 2007 Christian Mueller
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
 * use this file except in compliance with the License. You may obtain a copy of 
 * the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by 
 * applicable law or agreed to in writing, software distributed under the License 
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 * either express or implied. See the License for the specific language governing 
 * permissions and limitations under the License.
 * 
 * Description:
 * Define only here the global parameters/variables!
 */
#include "myglobal.h"
#include "globopts.h"

char opt_executeAgent[OPTIONS_MAX_STRING] = "\0";
char opt_database[OPTIONS_MAX_STRING] = "\0";
char opt_source_database[OPTIONS_MAX_STRING] = "\0";
char opt_dest_file[OPTIONS_MAX_STRING] = "\0";
char opt_dest_dir[OPTIONS_MAX_STRING] = "\0";
char opt_notesini[OPTIONS_MAX_STRING] = "\0";
int  opt_verbose = FALSE;
int  opt_help = FALSE;
int  opt_debuglevel = 0;
int  opt_getreplicId = FALSE;
int  opt_createreplicId = FALSE;
int  opt_copyreplicId = FALSE;
int  opt_copynotesdb = FALSE;
int  opt_backupdb = FALSE;

int  opt_box_files_only = FALSE;
int  opt_nsf_files_only = FALSE;
int  opt_ntf_files_only = FALSE;

options_param nswiss_options[] = 
{ 
	{NULL,NULL,OPTION_DESCRIPTION,NULL,"Please select one of the following execution commands:"},
	{"E","execute-agent",OPTION_STRING,&opt_executeAgent,"Executes an agent defined."},
	{"G","get-replicid",OPTION_BOOLEAN_TRUE,&opt_getreplicId,"Get the ReplicId of the defined database."},
	{"R","create-replicid",OPTION_BOOLEAN_TRUE,&opt_createreplicId,"Generates a new replic id for the defined database."},
	{"C","copy-replicid",OPTION_BOOLEAN_TRUE,&opt_copyreplicId,"Copy the replicaid form defined source datatabase to the destination database."},
	{"c","copy-database",OPTION_BOOLEAN_TRUE,&opt_copynotesdb,"Copy the database to the defined destination."},
	{"b","backup-databases",OPTION_BOOLEAN_TRUE,&opt_backupdb,"Make a backup of all databases to the defined destination."},
	{NULL,NULL,OPTION_DESCRIPTION,NULL,"Global parameters:"},
	{"i","notes-ini",OPTION_STRING,&opt_notesini,"Define the notes.ini that should be used."},
	{"d","database",OPTION_STRING,&opt_database,"Define the database to be operated on."},
	{"s","source-database",OPTION_STRING,&opt_source_database,"Define the source database."},
	{NULL,"dest-database",OPTION_STRING,&opt_database,"Define the destination database."},
	{"f","file",OPTION_STRING,&opt_dest_file,"Define the destination file."},
	{"D","dir",OPTION_STRING,&opt_dest_dir,"Define the destination directory."},
	{NULL,"box-only",OPTION_BOOLEAN_TRUE,&opt_box_files_only,"Process only *.box files"},
	{NULL,"nsf-only",OPTION_BOOLEAN_TRUE,&opt_nsf_files_only,"Process only *.nsf files"},
	{NULL,"ntf-only",OPTION_BOOLEAN_TRUE,&opt_ntf_files_only,"Process only *.ntf files"},
	{"v","verbose",OPTION_BOOLEAN_TRUE,&opt_verbose,"Starts application in verbose level"},
	{NULL,"debug-level",OPTION_INTEGER,&opt_debuglevel,"Starts application in verbose level (1-8). Default is 1"},
	{NULL,"help",OPTION_BOOLEAN_TRUE,&opt_help,"Get this help"},
	{NULL,NULL,OPTION_NULL,NULL,NULL}, 
};
